const mongoose = require('mongoose')
const Schema = mongoose.Schema
const AnnouncementTagSchemaConfig = {
  versionKey: false
}

const AnnouncementTagSchema = new Schema({
  name: String,
  delete: { type: Boolean, default: false },
  list: [{ type: Schema.Types.ObjectId, ref: 'Announcement' }]
}, AnnouncementTagSchemaConfig)

exports = module.exports = AnnouncementTagSchema
